<%@ include file="/html/portlet/ext/dashBoard/init.jsp" %>

<b><liferay-ui:message key="teacher_list" /> &raquo;</b><br><br>

<%  
	PortletURL navigationURL = renderResponse.createRenderURL();
	navigationURL.setParameter("struts_action", "/ext/dashBoard/dashBoardAction");
	navigationURL.setParameter(Constants.CMD, "teacherList-nav"); 
		
	List<Teacher> teacherList = null;
	
	teacherList = (List) request.getAttribute("TeacherList"); 
	
		
   	SearchContainer searchContainer = new SearchContainer(renderRequest, null, null, SearchContainer.DEFAULT_CUR_PARAM, 5, navigationURL, null, "");
	List<Teacher> result = ListUtil.subList(teacherList, searchContainer.getStart(), searchContainer.getEnd());
	int total = teacherList.size();
	searchContainer.setTotal(total);	
		
   	for(int i=0; i < result.size(); i++) {
		Teacher teacher = result.get(i);
%>
	<liferay-ui:user-display userId="<%= teacher.getUserId() %>" userName="<%= teacher.getFirstName() %>" displayStyle="2"/> 		
<%}%>

	<div class="taglib-search-iterator-page-iterator-bottom">
			<liferay-ui:search-paginator searchContainer="<%= searchContainer %>" />
	</div>

	<br>&laquo;<a href="javascript:history.go(-1)()"><liferay-ui:message key="back" /></a></b>